<?php
/**
 * model.php
 * @author ranuandra
 *
 * 10 Agu 2011 14:30:58
 *
 * 
 */


class Model_Model Extends ORM
{
				protected $_has_many = array(
									'polreg' 	=> array('model' => 'polreg'),
								);

			public function cek_data($model)
			{
				return DB::select('id')
					->from($this->_table_name)
					->where('model', '=', $model)
					->execute($this->_db);				
			}
}